import Layout from "@/views/layout/index.vue";

/**
 * 路由配置
 * meta: {
 *   title: 该路由中页面的标题
 *   noCache: 该路由中页面是否需要缓存
 *   menu: 该路由是否需要显示在顶部导航中
 *   breadcrumb: 该路由是否需要显示面包屑
 *   children: 子路由
 }
 */
const routes = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: { name: "HOME" },
    children: [
      {
        path: "HOME",
        name: "HOME",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "",
          noCache: false,
          menu: true,
          breadcrumb: false
        }
      },
      {
        path: "ABOUT_US",
        name: "ABOUT_US",
        component: () => import("@/views/about/index.vue"),
        meta: {
          title: "",
          noCache: false,
          menu: true,
          breadcrumb: true
        },
      },
      {
        path: "CONFERENCE_SCHEDULE",
        name: "CONFERENCE_SCHEDULE",
        component: () => import("@/views/conference/index.vue"),
        meta: {
          title: "",
          noCache: false,
          menu: true,
          breadcrumb: true
        },
      },
      {
        path: "REGISTRATION",
        name: "REGISTRATION",
        component: () => import("@/views/registration/index.vue"),
        meta: {
          title: "",
          noCache: false,
          menu: true,
          breadcrumb: true
        },
      },
    ],
  },
];

export default routes;
